package com.study.polymorphic_study;

/**
 * @author liuguibin
 * @date 2020-12-25 22:56
 * 动物类，定义公共方法
 */
public class Animal {
    public String lll = "lll";

    public void run() {
        System.out.println("每个动物都会跑！");
    }

    public void eat() {
        System.out.println("公共定义吃，每个动物吃的不一样啊！");
    }

    public void alive() {
        System.out.println("每个动物都有生命！");
    }

    //静态不能继承
    public static void kkk() {
        System.out.println("kkk");
    }

    public Animal() {
    }
}
